package com.juyu.miliao.api.controller.wx;

import com.juyu.miliao.api.service.WxUserInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 微信分享赚钱
 */
@RestController
@RequestMapping("/wx/share")
@CrossOrigin
public class WxShareController {
    @Resource
    private WxUserInfoService wxUserInfoService;

    @GetMapping("/openId")
    public Object getShareOpenId(@RequestParam String code){
        return wxUserInfoService.getShareOpenId(code);
    }
}
